# -*- coding: UTF-8 -*-

dataDct = {
    "WrongMethod": {"code": 11, "msg": "Wrong Method"},
    "InvalidForm": {"code": 12, "msg": "Invalid Form"},
    "OutOfBound": {"code": 13, "msg": "Out of bound"},
    "NotFoundItem": {"code": 14, "msg": "Not found item"},
    "StateError": {"code": 15, "msg": "Input error"},
    "countError": {"code": 22, "msg": "countError"},
    "limitError": {"code": 23, "msg": "limitError"},
    "pageError": {"code": 24, "msg": "pageError"},
    "Duplicate information": {"code": 16, "msg": "Duplicate content"},
    "userId error": {"code": 17, "msg": "userId error"},
    "questionIdError": {"code": 18, "msg": "questionIdError"},
    "softwareIdError": {"code": 19, "msg": "softwareIdError"},
    "demandIdError": {"code": 20, "msg": "demandIdError"},
    "materialIdError": {"code": 21, "msg": "materialIdError"},
    "You have forgotten about Fred!": {"code": 30, "msg": "You have forgotten about Fred! Error"},
    "手机号码格式错误": {"code": 30, "msg": "手机号码格式错误 Error"},
}


def genErrors(err_type):
    return dataDct[err_type]
